package org.longgang.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * position_resume
 * @author 
 */
public class PositionResume implements Serializable {
    /**
     * 职位id
     */
    private Integer positionid;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 投递日期
     */
    private Date deliverydate;

    /**
     * 投递状态
     */
    private Integer status;

    /**
     * 备用
     */
    private String b1;

    /**
     * 备用
     */
    private String b2;

    private static final long serialVersionUID = 1L;

    public Integer getPositionId() {
        return positionid;
    }

    public void setPositionId(Integer positionid) {
        this.positionid = positionid;
    }

    public Integer getUserId() {
        return userid;
    }

    public void setUserId(Integer userid) {
        this.userid = userid;
    }

    public Date getDeliveryDate() {
        return deliverydate;
    }

    public void setDeliveryDate(Date deliverydate) {
        this.deliverydate = deliverydate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PositionResume other = (PositionResume) that;
        return (this.getPositionId() == null ? other.getPositionId() == null : this.getPositionId().equals(other.getPositionId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getDeliveryDate() == null ? other.getDeliveryDate() == null : this.getDeliveryDate().equals(other.getDeliveryDate()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPositionId() == null) ? 0 : getPositionId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getDeliveryDate() == null) ? 0 : getDeliveryDate().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", positionid=").append(positionid);
        sb.append(", userid=").append(userid);
        sb.append(", deliverydate=").append(deliverydate);
        sb.append(", status=").append(status);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public PositionResume() {
		super();
	}

	public PositionResume(Integer positionid, Integer userid, Integer status) {
		super();
		this.positionid = positionid;
		this.userid = userid;
		this.status = status;
	}

	public PositionResume(Integer positionid, Integer userid, Integer status, String b1) {
		super();
		this.positionid = positionid;
		this.userid = userid;
		this.status = status;
		this.b1 = b1;
	}
    
}